package com.antu.first.bean;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2018/3/3.
 */
public class User {

    private int uId;//Id

    private String uName;//用户昵称

    private String uSex;//用户性别

    private int uAge;//用户年龄

    private double uAggregate;//总消费金额

    private Date uCreateTime;//用户创建时间

    private Date uLastEditTime;//用户最后修改时间

    private String uProfile;//用户头像地址

    private String uCity;//用户所在城市

    private String uProvice;//用户所在省份

    private String uOpenId;//用户OpenId

    private int uTotalIntegral;//用户总积分

    private int uPresentIntegral;//用户现有积分

    private List<Indent> indents;//用户订单信息

    private List<Integral> integrals;//积分获取信息

    private int grade;//会员等级

    private List<DiscountCoupon> discountCoupons;//优惠券列表

    public User() {
    }

    public User(int uId, String uName, String uSex, int uAge, double uAggregate, Date uCreateTime, Date uLastEditTime, String uProfile, String uCity, String uProvice, String uOpenId, int uTotalIntegral, int uPresentIntegral, List<Indent> indents, List<Integral> integrals, int grade, List<DiscountCoupon> discountCoupons) {

        this.uId = uId;
        this.uName = uName;
        this.uSex = uSex;
        this.uAge = uAge;
        this.uAggregate = uAggregate;
        this.uCreateTime = uCreateTime;
        this.uLastEditTime = uLastEditTime;
        this.uProfile = uProfile;
        this.uCity = uCity;
        this.uProvice = uProvice;
        this.uOpenId = uOpenId;
        this.uTotalIntegral = uTotalIntegral;
        this.uPresentIntegral = uPresentIntegral;
        this.indents = indents;
        this.integrals = integrals;
        this.grade = grade;
        this.discountCoupons = discountCoupons;
    }

    public int getuId() {

        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuSex() {
        return uSex;
    }

    public void setuSex(String uSex) {
        this.uSex = uSex;
    }

    public int getuAge() {
        return uAge;
    }

    public void setuAge(int uAge) {
        this.uAge = uAge;
    }

    public double getuAggregate() {
        return uAggregate;
    }

    public void setuAggregate(double uAggregate) {
        this.uAggregate = uAggregate;
    }

    public Date getuCreateTime() {
        return uCreateTime;
    }

    public void setuCreateTime(Date uCreateTime) {
        this.uCreateTime = uCreateTime;
    }

    public Date getuLastEditTime() {
        return uLastEditTime;
    }

    public void setuLastEditTime(Date uLastEditTime) {
        this.uLastEditTime = uLastEditTime;
    }

    public String getuProfile() {
        return uProfile;
    }

    public void setuProfile(String uProfile) {
        this.uProfile = uProfile;
    }

    public String getuCity() {
        return uCity;
    }

    public void setuCity(String uCity) {
        this.uCity = uCity;
    }

    public String getuProvice() {
        return uProvice;
    }

    public void setuProvice(String uProvice) {
        this.uProvice = uProvice;
    }

    public String getuOpenId() {
        return uOpenId;
    }

    public void setuOpenId(String uOpenId) {
        this.uOpenId = uOpenId;
    }

    public int getuTotalIntegral() {
        return uTotalIntegral;
    }

    public void setuTotalIntegral(int uTotalIntegral) {
        this.uTotalIntegral = uTotalIntegral;
    }

    public int getuPresentIntegral() {
        return uPresentIntegral;
    }

    public void setuPresentIntegral(int uPresentIntegral) {
        this.uPresentIntegral = uPresentIntegral;
    }

    public List<Indent> getIndents() {
        return indents;
    }

    public void setIndents(List<Indent> indents) {
        this.indents = indents;
    }

    public List<Integral> getIntegrals() {
        return integrals;
    }

    public void setIntegrals(List<Integral> integrals) {
        this.integrals = integrals;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public List<DiscountCoupon> getDiscountCoupons() {
        return discountCoupons;
    }

    public void setDiscountCoupons(List<DiscountCoupon> discountCoupons) {
        this.discountCoupons = discountCoupons;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", uName='" + uName + '\'' +
                ", uSex='" + uSex + '\'' +
                ", uAge=" + uAge +
                ", uAggregate=" + uAggregate +
                ", uCreateTime=" + uCreateTime +
                ", uLastEditTime=" + uLastEditTime +
                ", uProfile='" + uProfile + '\'' +
                ", uCity='" + uCity + '\'' +
                ", uProvice='" + uProvice + '\'' +
                ", uOpenId='" + uOpenId + '\'' +
                ", uTotalIntegral=" + uTotalIntegral +
                ", uPresentIntegral=" + uPresentIntegral +
                ", indents=" + indents +
                ", integrals=" + integrals +
                ", grade=" + grade +
                ", discountCoupons=" + discountCoupons +
                '}';
    }
}
